package com.atguigu.day02.tea;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @Author : 孙峰
 * @Description:
 * @Date : 2022/7/2  9:07
 */
public class T1Task implements Callable<String> {
    @Override
    public String call() throws Exception {
        System.out.println("T2:洗茶壶...");
        TimeUnit.SECONDS.sleep(1);
        System.out.println("T2:洗茶杯...");
        TimeUnit.SECONDS.sleep(2);
        System.out.println("T2:拿茶叶...");
        TimeUnit.SECONDS.sleep(1);
        return "龙井";
    }
}
